<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<head>
	<title>北京邮电大学学生党员在线学习中心</title>
	<script type="text/javascript">
	function check() {
		   var oldPassword = document.form1.oldPassword.value.toString();
		   var newPassword = document.form1.newPassword.value.toString();
		   var newPassword2 = document.form1.newPassword2.value.toString();
		   
 	   if(oldPassword.trim().length == 0) {
		       alert('请输入旧密码！');
		       document.form1.oldPassword.focus();
		       return false;
		       
		   } else if(newPassword.trim().length == 0) {
		       alert('请输入新密码！');
		       document.form1.newPassword.focus();
		       return false;
		        
		   } else if(newPassword！=newPassword2) {
		       alert(' 请重新输入新密码！');
		       document.form1.newPassword2.focus();
		       return false;
		   } 
	
		}
	</script>
	
</head>
<div id="nav_bar">
    <img id="nav_bar_left" src="../../../styles/nav_bar_left.png" alt=""/>
    <div id="welcome_label">欢迎您，&nbsp;<s:property value="#session.session_user.studentName" />!</div>
    <img id="nav_bar_seperator" src="../../../styles/nav_bar_seperator.png" alt=""/>
    <div id="nav_location">
        <img id="nav_bar_point" src="../../../styles/nav_bar_point.png" alt="" />
        <div id="nav_cur_location">当前位置：&nbsp;<a href="${ctx}/UserAction_indexAction">首页</a>&nbsp;&nbsp;>&nbsp;&nbsp;<a href="${ctx}/UserAction_personCenter">个人中心</a>&nbsp;&nbsp;>&nbsp;&nbsp;<span style="color:black;">修改个人密码</span></div>
    </div>
    <img style="float:right; width:5px;" src="../../../styles/nav_bar_right.png" alt=""/>
    <a id="nav_logout" href="${ctx}/logoutAction">[安全退出]</a>
</div>
<div style="clear:both; height:5px;">&nbsp;</div>
<div style="min-height:450px;">
	<!-- left -->
	<div id="side_menu">
	    <div id="side_menu_title">
	        <img src="../../../styles/side_menu_title_img.png" alt="" />
	        <span>个人中心</span>
	    </div>
	    <div id="side_menu_title_bottom">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_personInfo">查改个人信息</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu_focus">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_modifyPassword">修改个人密码</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/UserAction_viewRecord">查看学习记录</a>
	    </div>
	</div>
	
	<div id="main_content">
	    <div id="main_content_title">
	        <img src="../../../styles/content_title_img.png" alt="" />
	        <span>修改个人密码</span>
	    </div>
	    <div class="main_content_title_bottom">&nbsp;</div>
			<p align="center">
				<font color=red><b>
					<s:property  value="#request.result"/>
				</b></font>
			</p>
				<br> 
			
				<p align="center">
					<input id="history" name="history" type="button" class="input-button"
						value="返回"
						onclick="window.location.href='javascript:history.go(-1);'" />
				</p>
	</div>
</div>
